package com.tsmti.lab.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.lab.entity
 * @Class：PimsSampleResult
 * @Description： 标本结果表
 * @Author：king
 * @Date：Created in 2018/11/15 10:24
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SAMPLE_RESULT")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSampleResult extends BaseDataEntity<Long> {
    /**
     * 主键
     */
    private Long id;
    /**
     * 标本ID
     */
    private Long sampleId;
    /**
     * 报告项目ID
     */
    private Long testItemId;
    /**
     * 显示标题
     */
    private String viewtitle;
    /**
     * 显示顺序
     */
    private Long viewSort;
    /**
     * 录入顺序
     */
    private Long inputSort;
    /**
     * 类型
     */
    private String type;
    /**
     * 结果
     */
    private String result;
    /**
     * 结果1
     */
    private String resultp;
    /**
     * 平均值1
     */
    private String avgValuep;
    /**
     * 标准差1
     */
    private String standardValuep;
    /**
     * 结果2
     */
    private String resultn;
    /**
     * 平均值2
     */
    private String avgValuen;
    /**
     * 标准差2
     */
    private String standardValuen;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SAMPLE_RESULT")
    @SequenceGenerator(name = "SEQ_SAMPLE_RESULT", sequenceName = "SEQ_SAMPLE_RESULT", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "SAMPLEID")
    public Long getSampleId() {
        return sampleId;
    }

    public void setSampleId(Long sampleId) {
        this.sampleId = sampleId;
    }

    @Basic
    @Column(name = "TESTITEMID")
    public Long getTestItemId() {
        return testItemId;
    }

    public void setTestItemId(Long testItemId) {
        this.testItemId = testItemId;
    }

    @Basic
    @Column(name = "VIEWTITLE")
    public String getViewtitle() {
        return viewtitle;
    }

    public void setViewtitle(String viewtitle) {
        this.viewtitle = viewtitle;
    }

    @Basic
    @Column(name = "VIEWSORT")
    public Long getViewSort() {
        return viewSort;
    }

    public void setViewSort(Long viewSort) {
        this.viewSort = viewSort;
    }

    @Basic
    @Column(name = "INPUTSORT")
    public Long getInputSort() {
        return inputSort;
    }

    public void setInputSort(Long inputSort) {
        this.inputSort = inputSort;
    }

    @Basic
    @Column(name = "TYPE")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "RESULT")
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Basic
    @Column(name = "RESULTP")
    public String getResultp() {
        return resultp;
    }

    public void setResultp(String resultp) {
        this.resultp = resultp;
    }

    @Basic
    @Column(name = "AVGVALUEP")
    public String getAvgValuep() {
        return avgValuep;
    }

    public void setAvgValuep(String avgValuep) {
        this.avgValuep = avgValuep;
    }

    @Basic
    @Column(name = "STANDARDVALUEP")
    public String getStandardValuep() {
        return standardValuep;
    }

    public void setStandardValuep(String standardValuep) {
        this.standardValuep = standardValuep;
    }

    @Basic
    @Column(name = "RESULTN")
    public String getResultn() {
        return resultn;
    }

    public void setResultn(String resultn) {
        this.resultn = resultn;
    }

    @Basic
    @Column(name = "AVGVALUEN")
    public String getAvgValuen() {
        return avgValuen;
    }

    public void setAvgValuen(String avgValuen) {
        this.avgValuen = avgValuen;
    }

    @Basic
    @Column(name = "STANDARDVALUEN")
    public String getStandardValuen() {
        return standardValuen;
    }

    public void setStandardValuen(String standardValuen) {
        this.standardValuen = standardValuen;
    }
}
